// To parse this JSON data, do
//
//     final serveData = serveDataFromJson(jsonString);

import 'dart:convert';

ServeData serveDataFromJson(String str) => ServeData.fromJson(json.decode(str));

String serveDataToJson(ServeData data) => json.encode(data.toJson());

class ServeData {
  ServeData({
    this.serviceReleaseId,
    this.linkUserId,
    this.serviceName,
    this.serciceType,
    this.region,
    this.regionId,
    this.isnationwide,
    this.price,
    this.negotiable,
    this.linkman,
    this.phonenumber,
    this.advertisingMap,
    this.serviceDetails,
    this.keyWord,
    this.createTime,
    this.browseNum,
    this.updateBy,
    this.updateTime,
    this.state,
    this.approvalState,
    this.approvalOpinion,
    this.approvalUser,
    this.approvalTime,
    this.sort,
    this.recommend,
    this.userInforCompany,
    this.searchCity,
    this.searchProv,
    this.checkSolution,
    this.publishUserId,
    this.talkUserId,
    this.shareUserIds,
    this.approvalFlag,
    this.childUserId,
    this.talkChildUserId,
    this.serciceTypeNme,
    this.topState,
    this.userName,
    this.stateLabel,
    this.approvalStateLabel,
    this.topStartTime,
    this.topEndTime,
    this.topCreateTime,
    this.publishUserName,
    this.publishUserLogo,
    this.publishUserPhone,
    this.talkUserName,
    this.talkUserLogo,
    this.talkUserPhone,
    this.talkUserIsAgent,
    this.shareUserNames,
    this.childUserName,
    this.childUserLogo,
    this.childUserPhone,
    this.childUserJob,
    this.talkChildUserName,
    this.talkChildUserLogo,
    this.talkChildUserPhone,
    this.talkChildUserJob,
  });

  int serviceReleaseId;
  int linkUserId;
  String serviceName;
  int serciceType;
  String region;
  String regionId;
  int isnationwide;
  dynamic price;
  int negotiable;
  String linkman;
  String phonenumber;
  String advertisingMap;
  String serviceDetails;
  String keyWord;
  DateTime createTime;
  int browseNum;
  dynamic updateBy;
  DateTime updateTime;
  int state;
  int approvalState;
  dynamic approvalOpinion;
  dynamic approvalUser;
  DateTime approvalTime;
  dynamic sort;
  dynamic recommend;
  UserInforCompany userInforCompany;
  dynamic searchCity;
  dynamic searchProv;
  dynamic checkSolution;
  int publishUserId;
  int talkUserId;
  String shareUserIds;
  dynamic approvalFlag;
  dynamic childUserId;
  dynamic talkChildUserId;
  String serciceTypeNme;
  dynamic topState;
  dynamic userName;
  String stateLabel;
  String approvalStateLabel;
  dynamic topStartTime;
  dynamic topEndTime;
  dynamic topCreateTime;
  String publishUserName;
  String publishUserLogo;
  String publishUserPhone;
  dynamic talkUserName;
  dynamic talkUserLogo;
  dynamic talkUserPhone;
  bool talkUserIsAgent;
  dynamic shareUserNames;
  dynamic childUserName;
  dynamic childUserLogo;
  dynamic childUserPhone;
  dynamic childUserJob;
  dynamic talkChildUserName;
  dynamic talkChildUserLogo;
  dynamic talkChildUserPhone;
  dynamic talkChildUserJob;

  factory ServeData.fromJson(Map<String, dynamic> json) => ServeData(
        serviceReleaseId: json["serviceReleaseId"],
        linkUserId: json["linkUserId"],
        serviceName: json["serviceName"],
        serciceType: json["serciceType"],
        region: json["region"],
        regionId: json["regionId"],
        isnationwide: json["isnationwide"],
        price: json["price"],
        negotiable: json["negotiable"],
        linkman: json["linkman"],
        phonenumber: json["phonenumber"],
        advertisingMap: json["advertisingMap"],
        serviceDetails: json["serviceDetails"],
        keyWord: json["keyWord"],
        createTime: DateTime.parse(json["createTime"]),
        browseNum: json["browseNum"],
        updateBy: json["updateBy"],
        updateTime: DateTime.parse(json["updateTime"]),
        state: json["state"],
        approvalState: json["approvalState"],
        approvalOpinion: json["approvalOpinion"],
        approvalUser: json["approvalUser"],
        approvalTime: DateTime.parse(json["approvalTime"]),
        sort: json["sort"],
        recommend: json["recommend"],
        userInforCompany: UserInforCompany.fromJson(json["userInforCompany"]),
        searchCity: json["searchCity"],
        searchProv: json["searchProv"],
        checkSolution: json["checkSolution"],
        publishUserId: json["publishUserId"],
        talkUserId: json["talkUserId"],
        shareUserIds: json["shareUserIds"],
        approvalFlag: json["approvalFlag"],
        childUserId: json["childUserId"],
        talkChildUserId: json["talkChildUserId"],
        serciceTypeNme: json["serciceTypeNme"],
        topState: json["topState"],
        userName: json["userName"],
        stateLabel: json["stateLabel"],
        approvalStateLabel: json["approvalStateLabel"],
        topStartTime: json["topStartTime"],
        topEndTime: json["topEndTime"],
        topCreateTime: json["topCreateTime"],
        publishUserName: json["publishUserName"],
        publishUserLogo: json["publishUserLogo"],
        publishUserPhone: json["publishUserPhone"],
        talkUserName: json["talkUserName"],
        talkUserLogo: json["talkUserLogo"],
        talkUserPhone: json["talkUserPhone"],
        talkUserIsAgent: json["talkUserIsAgent"],
        shareUserNames: json["shareUserNames"],
        childUserName: json["childUserName"],
        childUserLogo: json["childUserLogo"],
        childUserPhone: json["childUserPhone"],
        childUserJob: json["childUserJob"],
        talkChildUserName: json["talkChildUserName"],
        talkChildUserLogo: json["talkChildUserLogo"],
        talkChildUserPhone: json["talkChildUserPhone"],
        talkChildUserJob: json["talkChildUserJob"],
      );

  Map<String, dynamic> toJson() => {
        "serviceReleaseId": serviceReleaseId,
        "linkUserId": linkUserId,
        "serviceName": serviceName,
        "serciceType": serciceType,
        "region": region,
        "regionId": regionId,
        "isnationwide": isnationwide,
        "price": price,
        "negotiable": negotiable,
        "linkman": linkman,
        "phonenumber": phonenumber,
        "advertisingMap": advertisingMap,
        "serviceDetails": serviceDetails,
        "keyWord": keyWord,
        "createTime": createTime.toIso8601String(),
        "browseNum": browseNum,
        "updateBy": updateBy,
        "updateTime": updateTime.toIso8601String(),
        "state": state,
        "approvalState": approvalState,
        "approvalOpinion": approvalOpinion,
        "approvalUser": approvalUser,
        "approvalTime": approvalTime.toIso8601String(),
        "sort": sort,
        "recommend": recommend,
        "userInforCompany": userInforCompany.toJson(),
        "searchCity": searchCity,
        "searchProv": searchProv,
        "checkSolution": checkSolution,
        "publishUserId": publishUserId,
        "talkUserId": talkUserId,
        "shareUserIds": shareUserIds,
        "approvalFlag": approvalFlag,
        "childUserId": childUserId,
        "talkChildUserId": talkChildUserId,
        "serciceTypeNme": serciceTypeNme,
        "topState": topState,
        "userName": userName,
        "stateLabel": stateLabel,
        "approvalStateLabel": approvalStateLabel,
        "topStartTime": topStartTime,
        "topEndTime": topEndTime,
        "topCreateTime": topCreateTime,
        "publishUserName": publishUserName,
        "publishUserLogo": publishUserLogo,
        "publishUserPhone": publishUserPhone,
        "talkUserName": talkUserName,
        "talkUserLogo": talkUserLogo,
        "talkUserPhone": talkUserPhone,
        "talkUserIsAgent": talkUserIsAgent,
        "shareUserNames": shareUserNames,
        "childUserName": childUserName,
        "childUserLogo": childUserLogo,
        "childUserPhone": childUserPhone,
        "childUserJob": childUserJob,
        "talkChildUserName": talkChildUserName,
        "talkChildUserLogo": talkChildUserLogo,
        "talkChildUserPhone": talkChildUserPhone,
        "talkChildUserJob": talkChildUserJob,
      };
}

class UserInforCompany {
  UserInforCompany({
    this.userId,
    this.state,
    this.type,
    this.addId,
    this.realName,
    this.loginName,
    this.email,
    this.nickname,
    this.showNickname,
    this.phoneNumber,
    this.createTime,
    this.updateTime,
    this.comment,
    this.identity,
    this.message,
    this.sex,
    this.birthdate,
    this.province,
    this.city,
    this.accountHead,
    this.workUnit,
    this.jobDuties,
    this.auditStatus,
    this.complete,
    this.keyWord,
    this.expertInfo,
    this.facilitator,
    this.sort,
    this.provinceName,
    this.cityName,
    this.labShareNum,
    this.shareNum,
    this.shareUserId,
    this.histChatList,
    this.imMessage,
    this.userProvince,
    this.userCity,
    this.userArea,
    this.gkOpenId,
    this.kcOpenId,
    this.balance,
    this.freeze,
    this.searchCity,
    this.searchProv,
    this.vipLevel,
    this.vipLevelIcon,
    this.companyId,
    this.companyName,
    this.companyCode,
    this.companyType,
    this.businessLicense,
    this.companyProviders,
    this.serviceProviders,
    this.companyEmail,
    this.companyLogo,
    this.companyProvince,
    this.companyCity,
    this.remarks,
    this.auditTime,
    this.auditUser,
    this.auditOpinion,
    this.companyTypeLabel,
    this.topState,
    this.topStartTime,
    this.topEndTime,
    this.topCreateTime,
    this.userIntegral,
    this.userAllIntegral,
    this.totalBalance,
    this.orgUserCount,
    this.cooperationUserCount,
    this.linkPerson,
    this.linkPhone,
    this.linkJobDuties,
    this.subUserName,
    this.userName,
  });

  dynamic userId;
  dynamic state;
  String type;
  dynamic addId;
  String realName;
  dynamic loginName;
  dynamic email;
  dynamic nickname;
  int showNickname;
  dynamic phoneNumber;
  dynamic createTime;
  dynamic updateTime;
  dynamic comment;
  dynamic identity;
  dynamic message;
  dynamic sex;
  dynamic birthdate;
  dynamic province;
  String city;
  String accountHead;
  dynamic workUnit;
  dynamic jobDuties;
  dynamic auditStatus;
  int complete;
  dynamic keyWord;
  dynamic expertInfo;
  dynamic facilitator;
  dynamic sort;
  dynamic provinceName;
  String cityName;
  dynamic labShareNum;
  dynamic shareNum;
  dynamic shareUserId;
  dynamic histChatList;
  dynamic imMessage;
  dynamic userProvince;
  dynamic userCity;
  dynamic userArea;
  dynamic gkOpenId;
  dynamic kcOpenId;
  dynamic balance;
  dynamic freeze;
  dynamic searchCity;
  dynamic searchProv;
  dynamic vipLevel;
  dynamic vipLevelIcon;
  dynamic companyId;
  String companyName;
  dynamic companyCode;
  dynamic companyType;
  dynamic businessLicense;
  dynamic companyProviders;
  dynamic serviceProviders;
  dynamic companyEmail;
  dynamic companyLogo;
  dynamic companyProvince;
  dynamic companyCity;
  dynamic remarks;
  dynamic auditTime;
  dynamic auditUser;
  dynamic auditOpinion;
  dynamic companyTypeLabel;
  dynamic topState;
  dynamic topStartTime;
  dynamic topEndTime;
  dynamic topCreateTime;
  dynamic userIntegral;
  dynamic userAllIntegral;
  dynamic totalBalance;
  dynamic orgUserCount;
  dynamic cooperationUserCount;
  dynamic linkPerson;
  dynamic linkPhone;
  dynamic linkJobDuties;
  dynamic subUserName;
  dynamic userName;

  factory UserInforCompany.fromJson(Map<String, dynamic> json) =>
      UserInforCompany(
        userId: json["userId"],
        state: json["state"],
        type: json["type"],
        addId: json["addId"],
        realName: json["realName"],
        loginName: json["loginName"],
        email: json["email"],
        nickname: json["nickname"],
        showNickname: json["showNickname"],
        phoneNumber: json["phoneNumber"],
        createTime: json["createTime"],
        updateTime: json["updateTime"],
        comment: json["comment"],
        identity: json["identity"],
        message: json["message"],
        sex: json["sex"],
        birthdate: json["birthdate"],
        province: json["province"],
        city: json["city"],
        accountHead: json["accountHead"],
        workUnit: json["workUnit"],
        jobDuties: json["jobDuties"],
        auditStatus: json["auditStatus"],
        complete: json["complete"],
        keyWord: json["keyWord"],
        expertInfo: json["expertInfo"],
        facilitator: json["facilitator"],
        sort: json["sort"],
        provinceName: json["provinceName"],
        cityName: json["cityName"],
        labShareNum: json["labShareNum"],
        shareNum: json["shareNum"],
        shareUserId: json["shareUserId"],
        histChatList: json["histChatList"],
        imMessage: json["imMessage"],
        userProvince: json["userProvince"],
        userCity: json["userCity"],
        userArea: json["userArea"],
        gkOpenId: json["gkOpenId"],
        kcOpenId: json["kcOpenId"],
        balance: json["balance"],
        freeze: json["freeze"],
        searchCity: json["searchCity"],
        searchProv: json["searchProv"],
        vipLevel: json["vipLevel"],
        vipLevelIcon: json["vipLevelIcon"],
        companyId: json["companyId"],
        companyName: json["companyName"],
        companyCode: json["companyCode"],
        companyType: json["companyType"],
        businessLicense: json["businessLicense"],
        companyProviders: json["companyProviders"],
        serviceProviders: json["serviceProviders"],
        companyEmail: json["companyEmail"],
        companyLogo: json["companyLogo"],
        companyProvince: json["companyProvince"],
        companyCity: json["companyCity"],
        remarks: json["remarks"],
        auditTime: json["auditTime"],
        auditUser: json["auditUser"],
        auditOpinion: json["auditOpinion"],
        companyTypeLabel: json["companyTypeLabel"],
        topState: json["topState"],
        topStartTime: json["topStartTime"],
        topEndTime: json["topEndTime"],
        topCreateTime: json["topCreateTime"],
        userIntegral: json["userIntegral"],
        userAllIntegral: json["userAllIntegral"],
        totalBalance: json["totalBalance"],
        orgUserCount: json["orgUserCount"],
        cooperationUserCount: json["cooperationUserCount"],
        linkPerson: json["linkPerson"],
        linkPhone: json["linkPhone"],
        linkJobDuties: json["linkJobDuties"],
        subUserName: json["subUserName"],
        userName: json["userName"],
      );

  Map<String, dynamic> toJson() => {
        "userId": userId,
        "state": state,
        "type": type,
        "addId": addId,
        "realName": realName,
        "loginName": loginName,
        "email": email,
        "nickname": nickname,
        "showNickname": showNickname,
        "phoneNumber": phoneNumber,
        "createTime": createTime,
        "updateTime": updateTime,
        "comment": comment,
        "identity": identity,
        "message": message,
        "sex": sex,
        "birthdate": birthdate,
        "province": province,
        "city": city,
        "accountHead": accountHead,
        "workUnit": workUnit,
        "jobDuties": jobDuties,
        "auditStatus": auditStatus,
        "complete": complete,
        "keyWord": keyWord,
        "expertInfo": expertInfo,
        "facilitator": facilitator,
        "sort": sort,
        "provinceName": provinceName,
        "cityName": cityName,
        "labShareNum": labShareNum,
        "shareNum": shareNum,
        "shareUserId": shareUserId,
        "histChatList": histChatList,
        "imMessage": imMessage,
        "userProvince": userProvince,
        "userCity": userCity,
        "userArea": userArea,
        "gkOpenId": gkOpenId,
        "kcOpenId": kcOpenId,
        "balance": balance,
        "freeze": freeze,
        "searchCity": searchCity,
        "searchProv": searchProv,
        "vipLevel": vipLevel,
        "vipLevelIcon": vipLevelIcon,
        "companyId": companyId,
        "companyName": companyName,
        "companyCode": companyCode,
        "companyType": companyType,
        "businessLicense": businessLicense,
        "companyProviders": companyProviders,
        "serviceProviders": serviceProviders,
        "companyEmail": companyEmail,
        "companyLogo": companyLogo,
        "companyProvince": companyProvince,
        "companyCity": companyCity,
        "remarks": remarks,
        "auditTime": auditTime,
        "auditUser": auditUser,
        "auditOpinion": auditOpinion,
        "companyTypeLabel": companyTypeLabel,
        "topState": topState,
        "topStartTime": topStartTime,
        "topEndTime": topEndTime,
        "topCreateTime": topCreateTime,
        "userIntegral": userIntegral,
        "userAllIntegral": userAllIntegral,
        "totalBalance": totalBalance,
        "orgUserCount": orgUserCount,
        "cooperationUserCount": cooperationUserCount,
        "linkPerson": linkPerson,
        "linkPhone": linkPhone,
        "linkJobDuties": linkJobDuties,
        "subUserName": subUserName,
        "userName": userName,
      };
}
